﻿using SassModule.Entity;
using SassModule.ViewModel;
using System;
using System.Collections.Generic;

namespace SassModule.Contracts
{
    /// <summary>
    /// 菜单服务
    /// </summary>
    public interface IMenuService
    {
        /// <summary>
        /// 根据用户Id获取菜单
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <param name="dbStr"></param>
        /// <returns></returns>
        IEnumerable<string> Index(Guid userId,string dbStr = null);
        /// <summary>
        /// 获取账套下菜单列表
        /// </summary>
        /// <param name="db"></param>
        /// <returns></returns>
        IEnumerable<string> Index(string dbStr = null);
    }
}
